﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;

namespace housingsafety.server.Entities.DataModels
{
    [Table("zm_pc_yhlog_dx_cj")]
    public partial class ZmPcYhLogDxCj : Repository.IEntity
    {
        [Key]
        [StringLength(50)]
        [Column("id")]
        public string Id { get; set; }

        [StringLength(255)]
        [Column("fwbh")]
        public string Fwbh { get; set; }

        [Column("yhlog_id")]
        public string YhlogId { get; set; }

        [Column("jcly")]
        public short? Jcly { get; set; }

        [Column("check_id")]
        public string CheckId { get; set; }

        [StringLength(255)]
        [Column("check_name")]
        public string CheckName { get; set; }


        [Column("check_sm")]
        public string? CheckSm { get; set; }

        [Column("check_zp", TypeName = "json")]

        public string? CheckZp { get; set; }

        [Column("check_time")]
        public DateTime? CheckTime { get; set; }

        [Column("check_by")]
        public string? CheckBy { get; set; }

        [Column("zg_value")]
        public int? ZgValue { get; set; }

        [Column("fh_zt")]
        public int? FhZt { get; set; }

        [Column("create_on")]
        public DateTime CreateOn { get; set; }

        [Column("jczt")]
        public string ?Jczt { get; set; }

        [NotMapped ]
        [Column("delete_on")]
        public DateTime? DeleteOn { get; set; }

        [NotMapped]

        public DateTime? ModifiedOn { get; set; }

        [NotMapped]

        public short? IsDelete { get; set; }

        [Column("xzqdm")]
        public string? Xzqdm { get; set; }

        [Column("town")]
        public string? Town { get; set; }

        [Column("village")]
        public string? Village { get; set; }


        [Column("xzq")]
        public string? Xzq { get; set; }

        [Column("towndm")]
        public string? Towndm { get; set; }

        [Column("villagedm")]
        public string? Villagedm { get; set; }



        [Column("check_nickname")]
        public string? CheckNickname { get; set; }

        [Column("fh_time_dx")]
        public string? FhTimeDx { get; set; }

        [Column("fh_by_dx")]
        public string? FhBYDx { get; set; }

        [Column("fh_name_dx")]
        public string? FhNameDx { get; set; }
    }


    [Table("zm_pc_yhlog_dx_sqjz")]
    public partial class ZmPcYhLogDxSqjz : Repository.IEntity
    {
        [Key]
        [StringLength(50)]
        [Column("id")]
        public string Id { get; set; }

        [StringLength(255)]
        [Column("fwbh")]
        public string Fwbh { get; set; }

        [Column("yhlog_id")]
        public string YhlogId { get; set; }

        [Column("jcly")]
        public short? Jcly { get; set; }

        [Column("check_id")]
        public string CheckId { get; set; }

        [StringLength(255)]
        [Column("check_name")]
        public string CheckName { get; set; }


        [Column("check_sm")]
        public string? CheckSm { get; set; }

        [Column("check_zp", TypeName = "json")]

        public string? CheckZp { get; set; }

        [Column("check_time")]
        public DateTime? CheckTime { get; set; }

        [Column("check_by")]
        public string? CheckBy { get; set; }

        [Column("zg_value")]
        public int? ZgValue { get; set; }

        [Column("fh_zt")]
        public int? FhZt { get; set; }

        [Column("create_on")]
        public DateTime CreateOn { get; set; }

        [Column("jczt")]
        public string? Jczt { get; set; }

        [NotMapped]
        [Column("delete_on")]
        public DateTime? DeleteOn { get; set; }

        [NotMapped]

        public DateTime? ModifiedOn { get; set; }

        [NotMapped]

        public short? IsDelete { get; set; }

        [Column("xzqdm")]
        public string? Xzqdm { get; set; }

        [Column("town")]
        public string? Town { get; set; }

        [Column("village")]
        public string? Village { get; set; }


        [Column("xzq")]
        public string? Xzq { get; set; }

        [Column("towndm")]
        public string? Towndm { get; set; }

        [Column("villagedm")]
        public string? Villagedm { get; set; }



        [Column("check_nickname")]
        public string? CheckNickname { get; set; }

        [Column("fh_time_dx")]
        public string ? FhTimeDx { get; set; }

        [Column("fh_by_dx")]
        public string? FhBYDx { get; set; }

        [Column("fh_name_dx")]
        public string? FhNameDx { get; set; }
    }
}
